/*
 * @Description:School
 * 
 * @Author: rendc
 * 
 * @Date: 2025-07-30 14:27:43
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-07-30 14:51:59
 */

public final class School {
  static class StaticNestedClass {
    void display() {
      System.out.println("这是一个静态内部类的方法");
    }
  }

  // 静态代码块
  static {
    library = "凌云图书馆";
    System.out.println("静态代码块");

  }
  // 静态成员变量显示初始化
  private static String library = "栋梁图书馆";

  // 构造代码块
  {
    System.out.println("构造代码块");

  }

  // 构造器
  public School() {
    System.out.println("无参构造器");
  }

  public static void main(String[] args) {
    School school = new School();
    System.out.println(School.library);
  }

}